package util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class getImageURL {
	public String GetContentImgUrl(String content)
    { 
		  Matcher m =   Pattern.compile("<img[\\s]+[^>]*src=(['\"]?)/[\\w]*/[\\w]*/[\\w]*/[\\w]*/([\\w\\.]+)\\1[^>]*>").matcher(content);   
		  if(m.find()){   
		  System.out.println(m.group(2)+"regex");   
		  return m.group(2);
		  }  
		  return null;
    } 
//<p><img width="111" height="83" alt="" src="/waigy/fckeditor/uploadFiles/Image/405903.jpg" />123123</p>
//<html><img   src=0.gif></html>
}
